package com.dailyblue.java.mybatis.mybatis04.mapper;

import com.dailyblue.java.mybatis.mybatis04.bean.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpMapper {

    List<Emp> find1(String job);

    List<Emp> find2(@Param("job") String job,@Param("sal") Double sal);
    List<Emp> find3(@Param("job") String job,@Param("sal") Double sal);
    List<Emp> find4(String ename);

    List<Emp> find5(String[] jobs);

    void update1(@Param("job") String job,@Param("mgr") Integer mgr,@Param("empno") Integer empno);
    void update2(@Param("job") String job,@Param("mgr") Integer mgr,@Param("empno") Integer empno);

    List<Emp> find6(String ename);
}
